-- jeweler
-- created by chendh
-- 遗迹建筑功能-珠宝匠招募

return {
    canDevelop = function(id)
        local pet = PetM.getMyPet(125);
        if not pet then
            -- 玩家没有雕刻家冈布奥
            return false;
        end
        return true;
    end,

    -- 获取描述
    getDesc = function(desc)
        -- 计算宝珠熔炼的消耗
        -- 初始默认为30万金币
        local cost = 300000;
        local attribCost = {["money"] = cost};
        attribCost = FormulaM.invoke("CALC_COMPOUND_MONEY", ME.user, attribCost, "pearl");

        desc = string.gsub(desc, "{0}", tostring(attribCost["money"]));
        return desc;
    end,
};
